<%-- 
    Document   : edit_profil_admin
    Created on : Jan 19, 2014, 5:26:17 AM
    Author     : Muhammad Dony
--%>

<%@include file="../Admin/header_admin.jsp" %>
<%@page import="java.util.List"%>
<%@page import="data.AdminData"%>
<%
    AdminData dataProfil = (AdminData) request.getAttribute("dataProfil");
    String action = (String) request.getAttribute("buttonName");
%>
        
        <div class="col-lg-10">
            <div class="row">
                <div class="col-lg-3 col-lg-offset-6 well margin-atas">
                    <form class="form-horizontal col-lg-12 text-center" action="profil_admin" role="form" method="POST" parsley-validate>
                        <div class="form-group">
                            <h2>Tambah Administrator</h2>
                            <div class="controls">
                                <label>ID</label>
                                <input class="form-control" type="text" placeholder="ID" name="ID" parsley-trigger="change" value="<% out.print(dataProfil.getID()); %>" readonly />
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Username</label>
                                <input class="form-control" type="text" name="username" placeholder="Username" value="<%out.print(dataProfil.getUsername());%>">
                                </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>First Name</label>
                                <input class="form-control" type="text" name="firstname" placeholder="First Name" value="<%out.print(dataProfil.getFirstname());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Last Name</label>
                                <input class="form-control" type="text" name="lastname" placeholder="Last Name" value="<%out.print(dataProfil.getLastname());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <label>Email</label>
                                <input class="form-control" type="email" name="email" placeholder="Email" value="<%out.print(dataProfil.getEmail());%>">
                            </div>
                        </div>
                            <div class="form-group">
                            <div class="controls">
                                <label>Password</label>
                                <input class="form-control" type="password" name="password" placeholder="Password" value="<%out.print(dataProfil.getPassword());%>">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="controls">
                                <input type="submit" class="btn btn-primary form-control" name="action" value="<%=action%>">
                            </div>
                        </div>

                    </form>
                </div>
            </div>
        </div>
<%@include file="../Admin/footer_admin.jsp" %>
